package org.microservice.common.base;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import lombok.Data;

import java.io.Serializable;

/**
 * Base abstract class for entities which will hold definitions for created, last modified by and created,
 * last modified by date.
 */
@Data
public abstract class AbstractAuditingEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(value = "created_by",fill = FieldFill.INSERT)
    private String createdBy;
    @TableField(fill = FieldFill.INSERT,value = "created_time")
    private String createdTime;
    @TableField(fill = FieldFill.UPDATE,value = "last_modified_by")
    private String lastModifiedBy;
    @TableField(fill = FieldFill.UPDATE,value = "last_modified_time")
    private String lastModifiedTime;





}
